package com.houserent.service;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import com.houserent.entry.HouseResult;

public interface HouseService {

    public HouseResult getHouseUseInfo(String userId, String allInfoTag);

    public HouseResult addHousePic(@RequestParam("roompic") MultipartFile roompic, HttpServletRequest request,
            HttpServletResponse response) throws IOException;

    public HouseResult addHouse(String houseId, String hostId, String roomNubmerType, String roomAddress,
            String roomType, String addressDetial, String roomnumber, String houseRent, String powerCharge,
            String waterCharge, String guarantyFee, String houseGoods);

    public HouseResult qryAllHouse(String userId);

    public HouseResult getUserInfo(String userId);

}
